package renda.action.admin;


import java.util.List;

import renda.common.SessionUtil;
import renda.dao.serivce.AdminService;
import renda.pojo.Users;

public class UserManageAction{
	private Users user = new Users();
	private AdminService adminService;
	public String execute(){
		List<Users> list  = adminService.getUsers(user);
		if(list!=null&&list.size()>0){
			SessionUtil.setAttr("userlist", list);
			return "success";
		}
		return "error";
	}
	
	public void setUsers(Users user) {
		this.user = user;
	}
	public Users getUser() {
		return user;
	}
	public void setAdminService(AdminService adminService) {
		this.adminService = adminService;
	}
}
